package com.hhd.flow.install;

import com.hhd.flow.service.HFlowInstallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class AutoInstall implements ApplicationListener<ContextRefreshedEvent> {

    @Autowired
    HFlowInstallService installService;

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        installService.install();
    }
}